<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"   
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/default.xhtml">
   
   	<f:metadata>	   	
	   	<f:viewParam name="firstResult" value="#{businessManagerAuditSuccessBulletinList.firstResult}"></f:viewParam>	
	   	<f:viewParam name="projectName" value="#{businessManagerAuditSuccessBulletinList.parameterValues['projectName']}"></f:viewParam>
   		<f:viewParam name="serialNumber" value="#{businessManagerAuditSuccessBulletinList.parameterValues['serialNumber']}"></f:viewParam>
		<f:viewParam name="moduleName" value="可查看到选取的公告"></f:viewParam>
   	</f:metadata>
   
   	<ui:define name="content">
   
		<h:form id="searchForm">			
			<div  style="height:50px;margin-left:10px">				
				<p:outputLabel value="项目名称"></p:outputLabel>				
				<p:inputText value="#{businessManagerAuditSuccessBulletinList.parameterValues['projectName']}"></p:inputText>
				
				<p:outputLabel value="项目编号"></p:outputLabel>				
				<p:inputText value="#{businessManagerAuditSuccessBulletinList.parameterValues['serialNumber']}"></p:inputText>
				
				<div class="actionButtons">
					<p:commandButton value="查询" ajax="false"   action="AuditSuccessBulletinList.xhtml?faces-redirect=true&amp;includeViewParams=true&amp;firstResult=0" styleClass="blue-int"></p:commandButton>
					<p:button value="重置" outcome="AuditSuccessBulletinList.xhtml"></p:button>
				</div>				
				
				<div class="clearbt"></div>
			</div>
			
			<p:panel id="searchResult">
				<f:facet name="header">可查看到选取的公告</f:facet>
				<p:dataTable value="#{businessManagerAuditSuccessBulletinList.resultList}" var="_bulletin">
					
					<p:column>
						<f:facet name="header">项目名称</f:facet>
						#{_bulletin.projectName}
					</p:column>
					
					<p:column width="60">
						<f:facet name="header">选取方式</f:facet>
						#{_bulletin.wayOfChoose.typeName}
					</p:column>
					
					<p:column width="100">
						<f:facet name="header">报名截止时间</f:facet>
						<h:outputText value="#{_bulletin.endingApplyTime}"  >
							<f:convertDateTime pattern="yyyy-MM-dd HH:mm"/>
						</h:outputText>
					</p:column>
					
					<p:column width="60">
						<f:facet name="header">状态</f:facet>
						<h:outputText value="#{_bulletin.tradeStatus.typeName}" >
						</h:outputText>
					</p:column>
					
					<p:column style="text-align: center" width="60">
						<f:facet name="header">操作</f:facet>
						<p:button outcome="BulletinView.xhtml" value="查看">
							<f:param name="bulletinId" value="#{_bulletin.id}"></f:param>
						</p:button>
						
						<p:button outcome="slots.xhtml" value="选取" target="_blank" rendered="#{_bulletin.choosable }">
							<f:param name="bulletinId" value="#{_bulletin.id}"></f:param>
						</p:button>
					</p:column>
				</p:dataTable>
			</p:panel>
			
			<ui:include src="/WEB-INF/templates/manage/pagination.xhtml">
				<ui:param name="entityList" value="#{businessManagerAuditSuccessBulletinList}" />
			</ui:include>
			
		</h:form>
      
   	</ui:define>
</ui:composition>
